package com.funtl.apache.dubbo.provider.dao;

import com.funtl.apache.dubbo.provider.api.domain.TbOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbOrderDao {
    @Insert("INSERT INTO tb_order (user_id, order_id) VALUES (#{userId}, #{orderId})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    int insert(TbOrder tbOrder);
}
